import { S } from '../../s';
import { IPSAppDEReport } from '../../app/dataentity/ipsapp-dereport';
import { PSControlImpl } from '../pscontrol-impl';
import { IPSDEReportPanel } from './ipsdereport-panel';

export class PSDEReportPanelImpl
  extends PSControlImpl
  implements IPSDEReportPanel
{
  get codeName(): string {
    return this.M.codeName;
  }

  protected psappdereport: IPSAppDEReport;
  getPSAppDEReport(): IPSAppDEReport | null {
    return (
      this.psappdereport ||
      (this.psappdereport = this.fillObjectModel(
        S._3ee,
        this.M.getPSAppDEReport,
        S._3f1,
      ) as IPSAppDEReport)
    );
  }
  get cls(): string {
    return 'PSDEReportPanelImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._25b) return true;
    return super.instanceof(cls);
  }
}
